<template>
  <el-dialog
    top="30px"
    width="1000px"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <el-tabs>
      <el-tab-pane label="在保项目">
        <remove-select-list @success="getData" :isEnd="isEnd"></remove-select-list>
      </el-tab-pane>
      <el-tab-pane label="解保历史">
        <finish-record ref="recode"></finish-record>
      </el-tab-pane>
    </el-tabs>
  </el-dialog>
</template>

<script>
import RemoveSelectList from '@/bank/views/business/limit/new/postloan/components/RemoveSelectList'
import FinishRecord from '@/bank/views/business/limit/new/postloan/FinishRecord'
export default {
  components: {
    RemoveSelectList,
    FinishRecord,
  },
  props: {
    isEnd: {
      type: Boolean,
      default: false,
    },
    visible: Boolean,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    getData() {
      this.$refs.recode?.getData()
    },
  },
}
</script>

<style lang="scss" scoped></style>
